<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<div id="userGroup-layout"  class="easyui-layout" data-options="fit:true" style="margin-top:5px;">  
	<div data-options="region:'west',title:'用户组信息',collapsible:false,width:'59%'" style="border-left:0"> 
	    <div id="toolbar_userGroup" class="paddingTBL"> 
			<a href="#" id="add_userGroup" class="easyui-linkbutton" onclick="addRole()">添加</a>
			<span class="paddingbtn"></span>
			<a href="#" id="edit_userGroup" class="easyui-linkbutton" onclick="editRole()">修改</a>
			<span class="paddingbtn"></span>
			<a href="#" id="remove_userGroup" class="easyui-linkbutton" onclick="removeRole()">删除</a>
	    </div>
	    <table id="dataGrid_userGroup"></table>
	 </div>
	
	 <div data-options="region:'east',title:'分配角色',collapsible:false,width:'40%'" style="padding-left:9px;">
	       <div class="paddingTBL"> 
       	 	 <a href="#" id="expand_userGroup" class="easyui-linkbutton" onclick="expandAll()">展开全部</a>
			 <span class="paddingbtn"></span>
			 <a href="#" id="collapse_userGroup" class="easyui-linkbutton" onclick="collapseAll()">收起全部</a>
			 <span class="paddingbtn"></span>
			 <a href="#" id="save_userGroup" class="easyui-linkbutton" onclick="saveModuleMenu()">保存</a>
          </div>
		  <ul id="tree_userGroup" style="margin: 5px 0 0 40px;"></ul>
    </div>
</div> 
 
<!-- 添加、修改用户角色（用户组）对话框 -->
<div id="dialog_role" class="easyui-dialog" style="width:360px;height:180px;"
        data-options="iconCls:'icon-save',resizable:true,modal:true,closed:true">
    <form id="roleForm_role" method="post">
    	<table class="paddingTBL" cellspacing="10">
    	    <tr>
    			<td class="res_title">用户组编号</td>
    			<td><input type="text" id="number_role" name="fcode" class="easyui-textbox" required="required" data-options="width:160,height:24"/></td>
    		</tr>
    		<tr>
    			<td class="res_title">用户组名</td>
    			<td><input type="text" id="name_role" name="fname" class="easyui-textbox" required="required" data-options="width:160,height:24"/></td>
    		</tr>
    	</table>
    </form>
</div> 
 
<script src="<%=request.getContextPath()%>/js/systemMaintenance/userGroup.js"></script>